#ifndef WORLD_H
#define WORLD_H

#include "particle.h"

class World
{
    public:
        // real functions
        void update();
        void addParticle(double x_, double y_, double charge_, double vx_ = 0, double vy_ = 0, bool locked_ = false);
        void removeParticle(int n);
        void showParticles();
        Particle * getParticle(int n);
        Particle * closestParticle(double x_, double y_, double maxDistance);
        int numberOfParticles();
        
        // functions to deal with variables        
        double getTimeScale();
        
        void setTimeScale(double time);
        World();
        
    private:
        Particle * root;
        double timeScale;
};

#endif
